package com.demo.Repository;

import com.demo.entity.Grade;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

//孙伟景22090201135

public interface GradeRepository extends CrudRepository<Grade, Long> {
    List<Grade> findByScoreBetween(float minScore, float maxScore);
    List<Grade> findByCourseId(Long courseId); // 正确的方法名
}
